﻿#region using
using Microsoft.Xna.Framework;
using AwesomeTanks.Sources.GameElements.MapElements;
using AwesomeTanks.Sources.Media;
#endregion

namespace AwesomeTanks.Sources.GameElements.Factories
{
    /// <summary>
    /// The factory of Walls. This class creates the instance of wall
    /// </summary>
    public static class WallFactory
    {
        /// <summary>
        /// Gets an indestructible Wall.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="width">The width.</param>
        /// <param name="length">The length.</param>
        /// <returns></returns>
        public static Wall getWall(Vector2 position, int width, int length)
        {
            Wall wall = new Wall(position, width, length, Art.SpriteSheet, Art.WallSourceRectangle);
            return wall;
        }

        /// <summary>
        /// Gets an destructible Wall.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="width">The width.</param>
        /// <param name="length">The length.</param>
        /// <returns></returns>
        public static Wall getWall(Vector2 position, int width, int length, int health)
        {
            Wall wall = new Wall(position, width, length, Art.SpriteSheet, Art.WallSourceRectangle, health);
            return wall;
        }
    }
}
